#include "CameraComponent.h"


__ImplementClass(CameraComponent,std::string("Camera"), Component);


CameraComponent::CameraComponent()
{
    m_pCamera = NULL;
}

CameraComponent::~CameraComponent()
{

}

void CameraComponent::setCamera(Camera* pCamera)
{
	m_pCamera = pCamera;
}

void CameraComponent::setPosition(Vector3 *pos)
{
    m_pCamera->setPosition(*pos);
}

void CameraComponent::setRotation(Quaternion *q)
{
    m_pCamera->setOrientation(*q);
}

void CameraComponent::Update(float delta)
{

}